const express = require('express')
const adminDao = require('../dao/adminDao')

const admin = express.Router()

admin.get('/captcha', adminDao.captcha)

admin.post('/login', adminDao.login)

admin.get('/info', adminDao.info)

admin.get('/role', adminDao.role)

admin.post('/role/update', adminDao.roleUpdate)

module.exports = admin
